<!DOCTYPE html>
	<!-- 购物车页面 -->
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
		<link rel="stylesheet" href="css/nav.css" />
		<link rel="stylesheet" href="css/footer.css" />
		<link rel="stylesheet" href="css/login.css" />
		<script src="js/ip.js"></script>
		<title>我的购物车</title>
		<style>
			body {
				font-family: Arial, sans-serif;
				background-color: #D8D8D8;
				line-height: 1.6;
			}

			.cart {
				width: 700px;
				margin: 200px auto;
				background-color: #fff;
				padding: 20px;
				border-radius: 8px;
				box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
			}

			h1 {
				text-align: center;
				margin-bottom: 20px;
				color: #333;
			}

			.cart-header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 20px;
				padding-bottom: 10px;
				border-bottom: 1px solid #e9ecef;
			}

			.checkbox {
				width: 20px;
				height: 20px;
			}

			.product {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 15px 0;
				border-bottom: 1px solid #e9ecef;
			}

			.product-img {
				width: 80px;
				height: 80px;
				margin-right: 15px;
				object-fit: cover;
				border-radius: 4px;
			}

			.product-name {
				flex: 1;
			}

			.product-name p {
				margin: 0;
				color: #333;
			}

			.price {
				width: 120px;
				text-align: right;
				color: #dc3545;
				font-weight: bold;
			}

			.quantity {
				width: 120px;
				text-align: center;
			}

			.action {
				width: 120px;
				text-align: right;
			}

			button {
				background-color: #dc3545;
				color: white;
				border: none;
				padding: 8px 15px;
				border-radius: 4px;
				cursor: pointer;
				transition: background-color 0.3s ease;
			}

			button:hover {
				background-color: #c82333;
			}

			.summary {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 20px;
				padding-top: 10px;
				border-top: 1px solid #e9ecef;
			}

			.summary p {
				margin: 0;
				color: #333;
			}

			.checkout-btn {
				padding: 10px 20px;
				font-size: 16px;
			}

			.header-checkbox {
				display: flex;
				align-items: center;
			}

			.top-bg {
				height: 50vh;
				background-color: #ccc;
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				z-index: -1;
			}

			.bottom-bg {
				height: 50vh;
				background-color: #fff;
				position: fixed;
				bottom: 0;
				left: 0;
				width: 100%;
				z-index: -1;
			}
		</style>
	</head>

	<body>
		<div id="loginPopup" class="popup-overlay">
				<div class="popup-content">
					<div class="container">
						<div class="tit">登录</div>
						<input type="text" id="po" placeholder="账号" />
						<input type="password" id="pw" placeholder="密码">
						<button id="login">登录</button>
						<span class="go-register">没有账号？去注册</span>
						<span class="close-popup" data-dismiss="login">×</span> <!-- 关闭按钮 -->
					</div>
				</div>
			</div>
			<div id="registerPopup" class="popup-overlay">
				<div class="popup-content">
					<div class="container">
						<div class="tit">注册</div>
						<input type="text" placeholder="用户名" id="reg_username" />
						<input type="text" placeholder="手机号" id="reg_phone" />
						<input type="password" placeholder="设置密码" id="reg_password">
						<input type="password" placeholder="确认密码" id="reg_confirm_password">
						<button id="register">注册</button>
						<span class="go-login">已有账号？去登录</span>
						<span class="close-popup" data-dismiss="register">×</span> <!-- 关闭按钮 -->
					</div>
				</div>
			</div>
			
		<nav class="nav">
		  <div class="ndiv">
		    <ul>
		      <a href="index.html" class="logo">
		        <img src="img/ZXlogo.png" alt="">
				  卓越在线首页
		      </a>
		    </ul>
		    <ul>
		      <li><a href="FreeClasses.html" class="fcolor">免费课</a></li>
		      <li><a href="PracticalClasses.html" class="fcolor">实战课</a></li>
		      <li><a href="SystematicCourses.html" class="fcolor">体系课</a></li>
		      <li class="shangyehezuo">商业合作
		        <div class="syhz">
		          <p><a href="enterpriseServices.html">企业服务</a></p>
		          <p><a href="teacherSettled.html">讲师入住</a></p>
		        </div>
		      </li>
		      <li><a href="teacherSystem">教师系统</a></li>
		    </ul>
		    <ul class="rig">
		      <input type="text" placeholder="请输入关键字">
		      <button class="search">🔎搜索</button>
		      <a href="gouwuche.html">
		        <img src="img/购物车.png" alt="" class="gwc">
		      </a>
		      <span>登录</span>&nbsp;<span>注册</span>
				<span class="dlxx">
					<a href="" class="xxtz"><img src="img/XXTZ.png" alt="" /></a>
					<a href="" class="grzy">
						<img src="img/SZK.png" alt="" />
					</a>
					<span id="tcdl">退出</span>
				</span>
		    </ul>
		  </div>
		</nav>
		<!-- 灰色背景的 div -->
		<div class="top-bg"></div>
		<!-- 白色背景的 div -->
		<div class="bottom-bg"></div>
			<div class="cart">
				<h1>我的购物车</h1>
				<div class="cart-header">
					<span class="header-checkbox">
						<input type="checkbox" class="checkbox" id="selectAll">
						全选&nbsp;  &nbsp;课程
					</span>
					
					<span>金额&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;操作</span>
					
				</div>
				<div class="product">
					<input type="checkbox" class="checkbox product-checkbox">
					<img src="img/diushi.jpeg" alt="Product Image" class="product-img">
					<div class="product-name">
						<p>【实战课】数据分析50+高频场景实战 业绩提升立竿见影</p>
					</div>
					<div class="price">¥269.00</div>
					<div class="action">
						<button>删除</button>
					</div>
				</div>
				<div class="product">
					<input type="checkbox" class="checkbox product-checkbox">
					<img src="img/diushi.jpeg" alt="Product Image" class="product-img">
					<div class="product-name">
						<p>【实战课】数据分析50+高频场景实战 业绩提升立竿见影</p>
					</div>
					<div class="price">¥269.00</div>
					<div class="action">
						<button>删除</button>
					</div>
				</div>
				<div class="summary">
					<p>已选择1件商品，总计金额：¥269.00</p>
					<button class="checkout-btn">结算</button>
				</div><!-- 添加返回按钮 -->
				<button id="backButton" class="back-btn">返回上一个页面</button>
			</div>


			<footer class="footer">
				<ul>
					<li><a href="">企业服务</a></li>
					<li><a href="">网站地图</a></li>
					<li><a href="">关于我们</a></li>
					<li><a href="">联系我们</a></li>
					<li><a href="">讲师招募</a></li>
					<li><a href="">帮助中心</a></li>
					<li><a href="">意见反馈</a></li>
					<li><a href="">企业服务</a></li>
				</ul>
			</footer>
			<script src="js/login.js"></script>
			
			
			<script src="js/shoppingcart.js"></script>
	</body>

</html>